﻿using STT.Layer.Connection;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace STT.Profile.UserControlsHV
{
    public partial class UcTimKiem : System.Web.UI.UserControl
    {
        ToolBox tb = new ToolBox();
        public string tukhoa;
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable dt = tb.GetDataTableById5("TbHocVien_SearchByGV", Session["MaFhv"].ToString(), Request.QueryString.Get("key"));
            tukhoa = Request.QueryString.Get("key");
            if (dt.Rows.Count > 0)
            {
                //ddltkgv.DataSource = dt;
                //ddltkgv.DataBind();
                cpl.PageSize = 12;
                cpl.DataSource = dt.DefaultView;
                cpl.BindToControl = ddltkgv;
                ddltkgv.DataSource = cpl.DataSourcePaged;
                ddltkgv.DataBind();
            }
            else lblthongbao.Visible = true;
        }
    }
}